package com.ctgu.A1_4;

public class Customer {
    //客户（Customer）具有四个属性：姓名(name)，联系电话(contact)，邮寄地址(deliveryAddress)和是否激活状态(active)，
    private String name;
    private String contact;
    private String deliveryAddress;
    private boolean active;

    @Override
    public String toString() {
        return "客户{" +
                "名字='" + name + '\'' +
                ", 联系方式='" + contact + '\'' +
                ", 邮寄地址='" + deliveryAddress + '\'' +
                ", 激活状态=" + active +
                '}';
    }

    public Customer() {
    }

    public Customer(String name, String contact, String deliveryAddress, boolean active) {
        this.name = name;
        this.contact = contact;
        this.deliveryAddress = deliveryAddress;
        this.active = active;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddress(String deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }
}
